Repository navigation
Sweep the 3.2 cycle's prose inside the code - #1533
Merged
Merged
Conversation
Release checklist step 0, part B, over what changed since v3.1.0. No reading moves: comments, docstrings, message text and case-row notes, plus two tests that run the code two messages offer. - API docstrings: ParsedName.nickname and Role.NICKNAME name the alias marker (#1164); surname1 names the family-comma division and W5's Han pair; ReadingSource.SHAPE names the mixed-case credential (#1517), and capitalized() its force exception; LexiconReading.category lists `familiar` and `spelling`; Policy.two_family_names and Parser.suggest name the suggester's two-family vote (#1452). - Messages: a SettingEvidence row's refused vote offered a mapping, the NameEvidence shape, where a row takes a triple; each now offers its owner's shape, and a test evaluates both. The empty pair-list refusal says what `None` clears to; "a alias_marker" reads "an". - Citation comments trimmed to quote, clause and pointer in _assign, _group, _extract, _vocab, _lexicon and _post_rules; the measurements they held are listed in the PR body for decisions/parse-cost. - tools: suggest_measure's docstring lists the thresholds, populations and harness proof it has now; order_names' blocks are plural; the CLDR pack list, local_agreement's sources, build.py's three modules and two builders' cut --help line. - tests/v2/cases.py notes: release ranges for notes naming a commit or "master", a stale fixture quote, abdul's long_names_only reason. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The three measurements no decisions entry holds yet (group's M1
bisect, _extract._overlaps, _vocab's script sweeps) stay in their
comments until part C moves them; the pointers had read as though
decisions/parse-cost held them.
- A SettingEvidence row that is no triple, and a by_signal that is no
iterable, are offered a row whose signal votes on the evidence's own
setting (`_ROW_EXAMPLE`), not always a name_order row, which the
two_family_names and patronymic_rules settings refuse.
- One article helper (`_lexicon._a`) for every "a {kind}" message, with
honorific's silent h; the completed_by=None clause says it leaves no
listed word completing the word, which completes_any can still join.
- Docstrings: surname1's family-comma example is under two_family_names;
the nickname's alias marker is a listed one, @ and urf by default;
ReadingSource.SHAPE's mixed-case word stands in a mixed-case name;
Parser.suggest's two-family vote points at where it is weighed;
suggest_measure's opening names every switch it suggests.
- Tests: the vote test runs over every signal not voting on the order,
a new test runs every setting's offered row, the article is checked
per kind, the completed_by clearing is read in a parse with its
shipped list asserted first, and the bare-string test round-trips.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A setting no signal votes on (initials_as_family, capitals_as_family,
any other Policy field) was still offered a name_order row by the
fallback, which it refuses: it is now told no signal votes on it and
offered `by_signal=()`, and its by_signal iterable `()`.
- The two remaining "a {kind}" messages (attached on a reading, a phrase
matching as a kind) take `_a`.
- locales.VI's docstring: CS's fragment removes a reading too (#970).
- Tests: the offered-row test runs both messages over the five settings
suggest emits, the article test over every kind, the completed_by
clause's text is pinned, and both signal helpers assert they yield
rows.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From part A's report (#1534): - Parser.suggest's docstring gives the rounded figures docs/suggest.rst shows, with no dates; the dated tables stay in decisions/group-suggestion, which it names. - Signal's members say what each signal is and what it votes on, in a reader's words, without issue numbers or private table names. - NameEvidence's docstring says what a vote holds: the order voted for, the PatronymicRule, or True or False, as docs/suggest.rst does. And from the review of 093a07e: the two newly guarded article sites (attached on a reading, a phrase matching as a kind) each get a test over every kind that reaches them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Signal.FIRST_SURNAME votes True on a surname researchers rarely write as a given name, the second of SURNAME's two tables, not on a romanized Chinese, Korean or Vietnamese one (`John Wang Smith` casts none). - NameEvidence: a first-surname vote is cast only where two_family_names is weighed, not where the base has it on or an East Slavic rule is decided. - Parser.suggest links its figures to the guide's limits section. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part B of the 3.2 release prose sweep (root AGENTS.md's release checklist step 0): the prose inside the code changed since v3.1.0. It covers comments, docstrings, message text and
tests/v2/cases.pynotes, plus two tests that run the code a message offers. It touches no docs/, no docs/design and no AGENTS.md; what belongs there is listed at the end.What changed
API docstrings (autodoc renders them):
locales.VI's module docstring said its fragment is the one pack content that removes; CS's removesIng's given reading too (Read a repeated Czech degree joined byetas a title (Ing. et Ing. Jan Novákgives givenIng. et Ing.and no title) #970).ParsedName.nicknameandRole.NICKNAMEnow name the alias marker (Ali @ Abu bin Ahmadgives nicknameAbu, ShouldALIAS,URFand@mark a second name for the same person? (Ravi Kumar ALIAS Rajugives middle 'Kumar ALIAS', family 'Raju') #1164).ParsedName.surname1names the family-comma division (García Márquez, Gabriel) and W5's Han pair (王李小明underlocales.ZH). It said "elsewhere the whole family".ReadingSource.SHAPEnames the mixed-case credential after a comma (MRes, Read an unlisted mixed-case credential after a comma, such as MRes or AuD #1517).ParsedName.capitalizednames the force exception that keeps it as written.LexiconReading.categorylists thefamiliarandspellingcategories.Policy.two_family_namesandParser.suggestname the suggester's two-family vote (Signal.FIRST_SURNAME, ShouldParser.suggestproposetwo_family_names? A list ofGabriel García Márquez-style names gets no suggestion, and the default reads familyMárquez#1452).Parser.suggest's figures are the rounded ones docs/suggest.rst shows, undated, and link to its limits section.Signal's members say what each signal is and what it votes on, without issue numbers or private table names.NameEvidencesays what a vote holds, and where a first-surname vote is cast.User-facing messages:
SettingEvidencerow's refused vote offered code that does not run there. It offered a mapping ({Signal.FIRST_SURNAME: True}, NameEvidence's shape) where a row takes a triple. Each refusal now offers its owner's shape,(Signal.FIRST_SURNAME, True, 2)for a row, and the patronymic vote the same.by_signalthat is no iterable, were always offered aname_orderrow, which thetwo_family_namesandpatronymic_rulessettings refuse. Each is now offered a row whose signal votes on the evidence's own setting, and a setting no signal votes on (initials_as_family,capitals_as_family) is offeredby_signal=()._SETTING_OFnames. The helpers run only inside theraise, so no hot path gains a frame.Lexicon.add's empty pair-list refusal (completes=[]) offeredcompletes=Nonewithout saying that clears to the widest reading. It now says whatNonedoes for each property. The bare-string refusal'scompletes=['ذو']/completed_by=['الله']and thecompleted_by=Noneclearing were unpinned; two new tests run them.a {kind}message: "an alias_marker", "an honorific". A test covers each vowel kind.Stage headers: every
Reads:line was checked againsttools/stage_reads.pyfor all stages and against a grep of each module. All already match, including #1531's move ofbound_long_names_onlyto post_rules.Citation comments, brought to quote, clause and pointer:
_assign's H6/H10 block,_lexicon's T1 note,_post_rules' O6 block, and_group's N4 pointer. Their examples and history already live in rules/H6, H10, decisions/H9, T1, O6 and N4._group's M1 bisect,_extract._overlapsand_vocab's script-sweep note. They are left as they stand on master. Part C moves the figures (below), after which the comments can drop them.tools/:
suggest_measure.py's docstring now lists the thresholds, populations, tables and--basereport it has, and the four-flag harness proof. The two-flag form it gave still decidesinitials_as_familyandtwo_family_names.order_names.py's generated blocks are plural. Its "both tables" error text stays, since a test pins it.nl,msandmy, and its suggester--basesentence is updated.cldr_agreement.py's two pt_PT comments now agree.local_agreement.py's source list (patentsview);local_ctgov.py's "either" of three;build.py's three modules;familiar_wikidata.py's output folder;pt_given_names.py's emptyREMOVED.pt_given_names.py --helpandes_given_names.py --helpprinted their first line cut mid-sentence and now print the paragraph.tests/v2/cases.py notes:
3175314dand four naming "master" now name the release range the wheels read;Smith, Jane abd de Jones PhD);bound_given_latin_past_the_start_stays_apart's reason now names ShouldAbduljoin the word after it when it is not the first word? (Ahmad Abdul Rahmangives middleAbdul, familyRahman) #1464'slong_names_only;parity_check.py: 0 of 811 parity rows read otherwise under 1.4.0, so nothing was relabelled.Proof
tools/differential/snapshot.jsonlis byte-identical to master.093a07e5(its own environment); since then, docstrings and new tests only, the 3.11 suite re-run at the head. No test expectation edited.uv run pytest -n0 -m serialpasses 41 of 41, so the band holds.sphinx-build -b doctest docshas 0 failures,sphinx-build -W -b html docsis clean, and README's doctest passes.test_doc_citations.pypasses in the suite.For part C (docs/, docs/design, AGENTS.md), not changed here
rules/C6's quote in
_comma.py(around line 894): the comment holds the quote only, with no clause line. The code under it already reads the widened reach: it askscaps_shape_candidate(..., mixed_case=True), mixed-case credentials included since #1517. The rule line and the quote can move together, and a clause line could join them.decisions/parse-cost: three measurements still in code comments, held by no entry. Move each into a dated bullet; the comment can then point there instead.
_group.py:"(a) " * 3200(4x the base) measured a 14.1x cost against a 4.1x control under a policy with nomaiden_delimiters.test_benchmark.py'smaiden_pairsshape._extract._overlaps: 400 pairs spent 5.4ms against 2.5ms before the closer sweep existed (commit 4e02fa4, 2026-07-19, no recipe). The guards are thedelimiter_pairsandunmatched_closesrows._vocab's script sweeps: single_script's compiled regex beat per-character range tests by 3-9x at token scale and about 70x on long tokens (a102c86, 2026-07-28, no recipe). Tokenize's separator scan followed in Parse cost could fall by about 18% with no reading moved #1436, whose 2026-11-18 entry could take this as a sentence.docs/locales.rst, the sentence after the "What each pack carries" table: it says
viis the one pack whose fragment takes readings out, butcsdoes too (Ing's given-name reading). Suggested: "viandcsare the packs whose own fragments take readings out rather than adding them."Labels for the maintainer to weigh (
cases.pyclassifications, not notes; left unchanged):Labelled
fixthough the tree reads 1.4.0's fields:md_in_capitals_before_a_title_word_reads_it_as_the_familyandmd_in_capitals_behind_a_particle_chain_still_reports(fix(MDinside a name in capitals reads as the degree and takes the father's name (MARIAM HAFIZAH MD MOKHTARgives suffix 'MD MOKHTAR') #1394));a_cyrillic_doctorate_past_a_second_comma(fix(Shouldд-рending a name read as a credential, as Belarusian and Ukrainian write it? (Іван Петренко д-рgives familyд-р) #1128));salutation_and_an_occupation_that_is_a_surname_reports(fix(Should a spelled-out degree or job after a name and a comma read as one? (Ahmed Ali, Bachelorgives givenBachelor, familyAhmed Ali) #1457); only its report is new).The bt (binti) or ud before the last name word starts a credential run (
Siti Hajar bt Khalitgives familyHajar, suffixbt Khalit) #1467udrows, which also restore 1.4.0, are labelledparity.Labelled
paritywhere 1.4.0 joins the suffix with a comma (MD, PHDagainstMD PHD), withinparity_check.py's comparison:md_in_capitals_before_a_credential_stays_the_credentialandmd_in_capitals_before_a_generation_stays_the_credential.Smaller, optional:
suggest_measure.py's runtime figure (20s, 2026-11-10) predates Should the group suggester read common surnames outside East Asia? (Smith John,Jones David,Brown Jamesgets no suggestion in either order) #1364's and ShouldParser.suggestproposetwo_family_names? A list ofGabriel García Márquez-style names gets no suggestion, and the default reads familyMárquez#1452's populations. It now says so, but a re-time would replace it.bound_given_latin_past_the_start_stays_apartduplicatesabdul_in_a_three_word_name_stays_apart(same text, same expect).Reviews
624e80b8):name_orderrow for every setting.a {kind}messages had been missed.completed_by=Noneclause overclaimed.completed_bytest was vacuous on a dropped reading, and the bare-string test was brittle.surname1, nickname,ReadingSource.SHAPEandParser.suggestwording was wider than the behavior.02071bca.02071bca(code-reviewer):name_orderrow to settings no signal votes on.a {kind}messages were left unguarded.by_signaliterable message was untested, and so were two article sites.093a07e5, withvi.pyfrom part C's report. Its tests fail against the old fallback (4 of 5 settings).093a07e5(code-reviewer): no code defect; the two newly guarded article sites lacked a test. Tests added in7414f466.7414f466(comment-analyzer, the suggester docstrings from part A):FIRST_SURNAMEwas wider than the code, which reads only the researchers' surname table;NameEvidencepromised a first-surname vote where the switch is not weighed.2ba0c673, comments only, checked against the reviewer's examples.🤖 Generated with Claude Code